Microsoft Teams with Local Media Optimization

The device can be configured to support the Local Media Optimization feature when deployed in a Microsoft Teams environment. This feature is intended for complex environments consisting of a central SBC device (i.e., this device that you are configuring), which is referred to by Microsoft as the Proxy SBC, integrated in the Teams environment, and multiple remote SBCs or Gateways (referred to by Microsoft as remote site SBCs). In this environment, the central SBC determines the optimal path for connecting calls between the Teams clients, based on network connectivity (good or bad) and voice quality. The device path selection is based on supplementary information provided by Microsoft using their proprietary headers that are included in the SIP messages during call setup between Teams clients:

Microsoft SIP Header

Value

Description

X-MS-UserLocation

Internal or External

Indicates if the Teams client is located in the internal or external network with respect to the central SBC. Based on the header value, the device selects the Media Realm, using the IP Group's 'Internal Media Realm' or 'Media Realm' parameters, respectively.

X-MS-MediaPath

sbc1.contoso.com

sbc2.contoso.com

...

Indicates the order of remote SBCs that should be used for the media path between the Teams clients. If the first address is the central SBC itself, the media traverses the device (non-direct media).

Configuration of the device for Local Media Optimization is done on the IP Group of the Teams client, using the following IP Group table parameters:

'Teams Local Media Optimization Handling': This parameter enables Local Media Optimization and defines how the device handles the Teams call based on the Microsoft proprietary SIP headers.
'Internal Media Realm': Assigns a Media Realm which is used if the X-MS-UserLocation header value is "Internal". If the header value is "External" (or not present), the Media Realm assigned by the 'Media Realm' parameter is used.
'Teams Local Media Optimization Initial Behavior': This parameter defines how the central SBC device initially sends the received INVITE message with the SDP Offer to Teams.

For more information on the above parameters, see their descriptions in Configuring IP Groups.

For detailed technical information on deploying the device in a Microsoft Teams environment with Local Media Optimization, contact your AudioCodes sales representative.